package cn.stronglink.assetmanage.business.task.presenter;

import java.util.List;

import cn.stronglink.assetmanage.business.task.model.TaskOperateModel;
import cn.stronglink.assetmanage.business.task.model.TaskWaitModel;
import cn.stronglink.assetmanage.business.task.view.operate.TaskOpreateView;
import cn.stronglink.assetmanage.business.task.view.wait.TaskWaitView;
import cn.stronglink.assetmanage.entity.Task;

/**
 * Created by chencongcong on 2018/6/18.
 */

public class TaskOperatePresenter {
    private TaskOpreateView taskOpreateView;
    private TaskOperateModel taskOperateModel;

    public TaskOperatePresenter(TaskOperateModel taskOperateModel, TaskOpreateView taskOpreateView) {
        this.taskOperateModel = taskOperateModel;
        this.taskOpreateView = taskOpreateView;
    }

    /**
     * 初始化未完成数据
     */
    public void initWaitTaskData() {
        List<Task> waitTaskList = taskOperateModel.getOpreateList();
        taskOpreateView.setTaskListData(waitTaskList);
    }
}
